package com.yun.zf.common.mapstruct.admin;

import com.yun.zf.common.admin.dto.customer.CustomerAgentDto;
import com.yun.zf.common.admin.dto.customer.CustomerInfoDto;
import com.yun.zf.common.admin.model.customer.CustomerBasicMo;
import com.yun.zf.common.admin.model.customer.CustomerReqMo;
import com.yun.zf.common.app.domain.ZfCustomer;
import com.yun.zf.common.app.domain.ZfCustomerAgent;
import com.yun.zf.common.app.domain.ZfCustomerRequirement;
import com.yun.zf.common.esIndex.CustomerRequirementTemplate;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CustomerMapper {
    CustomerMapper INSTANCE = Mappers.getMapper(CustomerMapper.class);
    List<CustomerRequirementTemplate> requirementToIndexTemp(List<CustomerInfoDto> requirements);
    ZfCustomer basicMoToCustomer(CustomerBasicMo basicMo);

    ZfCustomerRequirement moToRequirement(CustomerReqMo req);

    List<CustomerAgentDto>  listToMo(List<ZfCustomerAgent> list);
}
